//
//  DailyMenu.m
//  MensaViewer
//
//  Created by Markus Dauberschmidt on 06.04.11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "DailyMenu.h"


@implementation DailyMenu
@synthesize dateString, meals;


-(id) initWithDateString:(NSString *)d
{
    self = [super init];
    self.meals = [[NSMutableArray alloc] init];
    self.dateString = d;
    return self;
}

-(void)dealloc
{
    [self.dateString release];
    [self.meals removeAllObjects];
    [self.meals release];
//    NSLog(@"date string rc: %d", [self.dateString retainCount]);
    [super dealloc];
//    NSLog(@"date string rc: %d", [self.dateString retainCount]);
}

-(void) addMeal:(Meal *)m
{
    [self.meals addObject:m];
}


@end
